<?php 
class AlbumQuestion extends ARCommonQuestion {
	
	public function attributeLabels() {
		return array(
			'question' => '作者验证问题',
			'question_info' => '填写作者问题',
			'answer' => '回答'
		);
	}
	
	public function validateQuestion(AlbumQuestion $question){
		if(!empty($question->answer) && ($question->answer == $this->answer))
			return true;

		$this->addError('answer', '回答错误哟!');
		return false;
		
	}
}

?>